package com.game.dongzhao.view;

import javafx.fxml.FXML;
import javafx.scene.image.Image;
import javafx.scene.image.ImageView;
import javafx.scene.layout.AnchorPane;

/**
 * 图片主显示界面
 */
public class ImageDetailsView {
    /**
     * 主图
     */
    @FXML
    private ImageView mainImage;

    /**
     * 主图地址
     */
    public static String mainImageUrl;

    /**
     * 初始化
     */
    @FXML
    public void initialize(){
        this.getMainImage().setImage(new Image(mainImageUrl));
    }

    public ImageView getMainImage() {
        return mainImage;
    }

    public void setMainImage(ImageView mainImage) {
        this.mainImage = mainImage;
    }
}
